package safari.model.message;

import java.sql.SQLException;
import java.util.List;

public interface MessageDao {
	public int newMessage(MessageVO msgvo) throws SQLException;
	public List<MessageVO> getReceivedMessageList(IdAndPageVO ipvo) throws SQLException;
	public List<MessageVO> getSendedMessageList(IdAndPageVO ipvo) throws SQLException;
	public int getNumberOfReceivedMessage(String myId) throws SQLException;
	public int getNumberOfSendedMessage(String myId) throws SQLException;
	public MessageVO viewOneMessage(int no) throws SQLException;
	public int deleteMessage(int no) throws SQLException;
}
